package cn.bonoon.controllers.recycle;

import java.util.Date;

import cn.bonoon.kernel.annotations.condition.ConditionField;
import cn.bonoon.kernel.annotations.condition.ConditionOpt;
import cn.bonoon.kernel.query.PageCondition;
import cn.bonoon.kernel.util.Opt;
import cn.bonoon.kernel.web.annotations.condition.ConditionContent;

public class RecycleCondition extends PageCondition implements RecycleDefine {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5149577565443187781L;

	@ConditionField(value = "name")
	@ConditionContent(ordinal = 0)
	private String searchName;

	@ConditionField(value = "entityName")
	@ConditionContent(ordinal = 10)
	private String searchEntityName;

	@ConditionField(value = "createAt")
	@ConditionOpt(Opt.GE)
	@ConditionContent(value = "时间  从", ordinal = 3)
	private Date searchStartAt;

	@ConditionField(value = "createAt")
	@ConditionOpt(Opt.LE)
	@ConditionContent(value = "到", ordinal = 4)
	private Date searchEndAt;

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public String getSearchEntityName() {
		return searchEntityName;
	}

	public void setSearchEntityName(String searchEntityName) {
		this.searchEntityName = searchEntityName;
	}

	public Date getSearchStartAt() {
		return searchStartAt;
	}

	public void setSearchStartAt(Date searchStartAt) {
		this.searchStartAt = searchStartAt;
	}

	public Date getSearchEndAt() {
		return searchEndAt;
	}

	public void setSearchEndAt(Date searchEndAt) {
		this.searchEndAt = searchEndAt;
	}

}
